import request from '@/utils/request';
// 字典列表
export function getDictList(data, sysLabel) {
  return request({
    url: '/modules/admin-system-config/getDictList?sysLabel=' + sysLabel,
    method: 'post',
    data
  });
}
// ruleList
export function ruleList(data) {
  return request({
    url: '/api/dingding/ruleList',
    method: 'post',
    data
  });
}
// recordList
export function recordList(data) {
  return request({
    url: '/api/dingding/recordList',
    method: 'post',
    data
  });
}
// ACKRecord
export function ACKRecord(data) {
  return request({
    url: '/api/dingding/ACKRecord',
    method: 'post',
    params: data
  });
}
// deleteRecord
export function deleteRecord(data) {
  return request({
    url: '/api/dingding/deleteRecord',
    method: 'post',
    params: data
  });
}
// updateRule
export function updateRule(data) {
  return request({
    url: '/api/dingding/updateRule',
    method: 'post',
    data
  });
}
// insertRule
export function insertRule(data) {
  return request({
    url: '/api/dingding/insertRule',
    method: 'post',
    data
  });
}
// 新增字典
export function addSysDict(data) {
  return request({
    url: '/modules/admin-system-config/addSysDict',
    method: 'post',
    params: data
  });
}
// 定时推送
export function scheduleGtPushList(data) {
  return request({
    url: '/api/gtMessage/scheduleGtPushList',
    method: 'post',
    data
  });
}
// 推送
export function getGtPushList(data) {
  return request({
    url: '/api/gtMessage/getGtPushList',
    method: 'post',
    data
  });
}
// 新增定时推送
export function scheduleGtPushById(data) {
  return request({
    url: '/api/gtMessage/scheduleGtPushById',
    method: 'post',
    data
  });
}
// 新增推送
export function saveGtPush(data) {
  return request({
    url: '/api/gtMessage/saveGtPush',
    method: 'post',
    data
  });
}
// 推送
export function selectGtPushById(data) {
  return request({
    url: '/api/gtMessage/selectGtPushById',
    method: 'post',
    data
  });
}
// 推送
export function updateGtPush(data) {
  return request({
    url: '/api/gtMessage/updateGtPush',
    method: 'post',
    data
  });
}
// 删除推送
export function removeGtPush(data) {
  return request({
    url: '/api/gtMessage/removeGtPush/' + data.id,
    method: 'get'
  });
}
// 删除推送
export function exportGtPushList(data) {
  return request({
    url: '/api/gtMessage/exportGtPushList',
    method: 'post',
    data
  });
}
// 取消定时推送
export function cancelScheduleGtPush(data) {
  return request({
    url: '/api/gtMessage/cancelScheduleGtPush',
    method: 'post',
    data
  });
}
// 编辑字典
export function editSysDict(data) {
  return request({
    url: '/modules/admin-system-config/editSysDict',
    method: 'post',
    data
  });
}
// 删除字典
export function deleteSysDict(data) {
  return request({
    url: '/modules/admin-system-config/deleteSysDict',
    method: 'get',
    data
  });
}
// 协议列表
export function getProtocolList(data) {
  return request({
    url: '/modules/admin-system-config/getProtocolList',
    method: 'get',
    params: data
  });
}
// 新增协议
export function saveProtocol(data) {
  return request({
    url: '/modules/admin-system-config/saveProtocol',
    method: 'post',
    data
  });
}
// 编辑协议
export function editProtocol(data) {
  return request({
    url: '/modules/admin-system-config/editProtocol',
    method: 'post',
    data
  });
}
// 编辑展示
export function viewProtocol(data) {
  return request({
    url: '/modules/admin-system-config/viewProtocol',
    method: 'get',
    params: data
  });
}

// 增加贷超
export function addloan(data) {
  return request({
    url: '/api/loanApp/save',
    method: 'post',
    data
  });
}
// 删除贷超
export function deleteloan(data) {
  return request({
    url: '/api/loanApp/removeById?id=' + data,
    method: 'get',
    data
  });
}
// 删除贷超
export function deleteById(data) {
  return request({
    url: '/api/loanApp/deleteById',
    method: 'get',
    params: data
  });
}
// 修改贷超
export function editloan(data) {
  return request({
    url: '/api/loanApp/updateById',
    method: 'post',
    data
  });
}
// 修改联登
export function editloanSwitch(data) {
  return request({
    url: '/api/loanApp/switch',
    method: 'post',
    data
  });
}
// app列表
export function getLoanAppList() {
  return request({
    url: '/modules/loanAppRegion/getLoanAppList',
    method: 'post'
  });
}
// 多选地区屏蔽
export function mulUpdateLoanAppRegion(data) {
  return request({
    url: '/modules/loanAppRegion/mulUpdateLoanAppRegion',
    method: 'post',
    data
  });
}
// 屏蔽列表
export function loanAppRegion(data) {
  return request({
    url: '/modules/loanAppRegion/list',
    method: 'post',
    data
  });
}
// 推送数据配置列表
export function pushSettingList(data) {
  return request({
    url: '/modules/loan-push/pushSettingList',
    method: 'post',
    data
  });
}
// 更新推送数据配置
export function updateSettingSwitch(data) {
  return request({
    url: '/modules/loan-push/updateSettingSwitch',
    method: 'post',
    data
  });
}
// 更新屏蔽配置
export function updateLoanAppRegion(data) {
  return request({
    url: '/modules/loanAppRegion/updateLoanAppRegion',
    method: 'post',
    data
  });
}
// 新增屏蔽配置
export function addLoanAppRegion(data) {
  return request({
    url: '/modules/loanAppRegion/addLoanAppRegion',
    method: 'post',
    data
  });
}
// addChannelRegion
export function addChannelRegion(data) {
  return request({
    url: '/modules/loanAppRegion/addChannelRegion',
    method: 'post',
    data
  });
}
// deleteByLoanIds
export function deleteByLoanIds(data) {
  return request({
    url: '/modules/loanAppRegion/deleteByLoanIds',
    method: 'post',
    data
  });
}
// 贷超列表
export function loanList(data) {
  return request({
    url: '/api/loanApp/list',
    method: 'post',
    data
  });
}
// 贷超统计图表
export function loanCount(data) {
  return request({
    url: '/api/appuv',
    method: 'post',
    data
  });
}
// 贷超统计列表
export function appCount(data) {
  return request({
    url: '/api/appuv/up-down-shelf',
    method: 'get',
    params: data
  });
}
// 贷超统计列表导出
export function reportLoan(data) {
  return request({
    url: '/api/appuv/reportLoan',
    method: 'get',
    params: data
  });
}
// 贷超渠道统计列表
export function channelCount(data) {
  return request({
    url: '/api/appuv/reportChannel',
    method: 'get',
    params: data
  });
}
// apk列表
export function apkList(data) {
  return request({
    url: '/modules/appfile/getAppFileList',
    method: 'get',
    params: data
  });
}
// apk上传
export function apkupload(data) {
  return request({
    url: '/modules/appfile/uploadapk',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data
  });
}
// 获取站点配置
export function site() {
  return request({
    url: '/api/site/get',
    method: 'get'
  });
}
// 更新站点配置
export function setsite(data) {
  return request({
    url: '/api/site/set',
    method: 'post',
    data
  });
}
// 更新updateCustomerPhone
export function updateCustomerPhone(data) {
  return request({
    url: '/api/site/updateCustomerPhone',
    method: 'get',
    params: data
  });
}
// 更新推送配置
export function pushSwitch(data) {
  return request({
    url: 'modules/loan-push/pushSwitch',
    method: 'post',
    data
  });
}

export function applist() {
  return request({
    url: '/api/site/avalibleApps',
    method: 'get'
  });
}

export function getAppByAppId(id) {
  return request({
    url: '/api/loanApp/selectById?id=' + id,
    method: 'get'
  });
}

// vip列表
export function selectVipLevleList(data) {
  return request({
    url: '/modules/vip/selectVipLevleList',
    method: 'post',
    data
  });
}

// vip列表
export function updateVipLevle(data) {
  return request({
    url: '/modules/vip/updateVipLevle',
    method: 'post',
    data
  });
}
// operationLog
export function operationLog(data) {
  return request({
    url: '/api/olog/list',
    method: 'post',
    data
  });
}
// blackList
export function blackList(data) {
  return request({
    url: '/modules/blacklist/list',
    method: 'get',
    params: data
  });
}
// addblackList
export function addblackList(data) {
  return request({
    url: '/modules/blacklist/add',
    method: 'post',
    data
  });
}
// delblackList
export function delblackList(data) {
  return request({
    url: '/modules/blacklist/del',
    method: 'get',
    params: data
  });
}

// blackListIp
export function blackListip(data) {
  return request({
    url: '/modules/blacklistip/list',
    method: 'get',
    params: data
  });
}
// addblackListip
export function addblackListip(data) {
  return request({
    url: '/modules/blacklistip/add',
    method: 'post',
    data
  });
}
// delblackListip
export function delblackListip(data) {
  return request({
    url: '/modules/blacklistip/del',
    method: 'get',
    params: data
  });
}
// leftSeconds
export function leftSeconds() {
  return request({
    url: '/modules/admin/leftSeconds',
    method: 'get'
  });
}
// leftSeconds
export function relet() {
  return request({
    url: '/modules/admin/relet',
    method: 'get'
  });
}
// alipay
export function alipay(data) {
  return request({
    url: '/modules/pay/list',
    method: 'post',
    data
  });
}
// use
export function use(data) {
  return request({
    url: '/modules/pay/use',
    method: 'post',
    data
  });
}
// exportReportChannel
export function exportReportChannel(data) {
  return request({
    url: '/api/appuv/exportReportChannel',
    method: 'get',
    params: data
  });
}
// 助力卡
export function powerList(data) {
  return request({
    url: '/power/level/list',
    method: 'get',
    params: data
  });
}
// 助力卡更新
export function modify(data) {
  return request({
    url: '/power/level/modify',
    method: 'post',
    data
  });
}
// 获取api配置
export function getApiSeeting(data) {
  return request({
    url: '/api/site/getApiSeeting',
    method: 'get',
    params: data
  });
}
// 更新api配置
export function updateApiSeeting(data) {
  return request({
    url: '/api/site/updateApiSeeting',
    method: 'post',
    data
  });
}
// api列表动态排序
export function updateSort(data) {
  return request({
    url: '/api/site/updateSort',
    method: 'post',
    data
  });
}

// 获取排序列表
export function getApiSort(data) {
  return request({
    url: '/api/loanApp/getApiSort',
    method: 'get',
    params: data
  });
}

// 排序
export function updateSortList(data) {
  return request({
    url: '/api/loanApp/updateSort',
    method: 'post',
    data
  });
}

// 渠道查询
export function searchChannel(data) {
  return request({
    url: '/api/searchChannel',
    method: 'post',
    data
  });
}
